<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:47:"D:\www\yangpangzisc\addons\uniprint\config.html";i:1628436950;s:62:"D:\www\yangpangzisc\application\admin\view\layout\default.html";i:1689043529;s:59:"D:\www\yangpangzisc\application\admin\view\common\meta.html";i:1689043529;s:61:"D:\www\yangpangzisc\application\admin\view\common\script.html";i:1689043529;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta name="robots" content="noindex, nofollow">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<?php if(\think\Config::get('fastadmin.adminskin')): ?>
<link href="/assets/css/skins/<?php echo \think\Config::get('fastadmin.adminskin'); ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
<?php endif; ?>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>

    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <?php if($auth->check('dashboard')): ?>
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                    <?php endif; ?>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <form id="config-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="panel panel-default panel-intro">
        <div class="panel-heading">
            <ul class="nav nav-tabs nav-group">
                <li class="active"><a href="#zhongwu" data-toggle="tab">中午</a></li>
                <li><a href="#yilianyun" data-toggle="tab">易联云</a></li>
                <li><a href="#feie" data-toggle="tab">飞鹅</a></li>
            </ul>
        </div>

        <div class="panel-body">
            <div id="myTabContent" class="tab-content">
                <?php foreach($addon['config'] as $item): if($item['name']=='zhongwu'): ?>
                <div class="tab-pane fade active in" id="zhongwu">
                    <table class="table table-striped table-config">
                        <tbody>
                        <tr>
                            <td width="25%">appid(应用id)</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[zhongwu][appid]" value="<?php echo (isset($item['value']['appid']) && ($item['value']['appid'] !== '')?$item['value']['appid']:''); ?>" class="form-control" data-rule="" data-tip=""/>
                                        <div style="margin-top:5px;"><a href="http://www.zhongwu.co/platform.html" target="_blank"><i class="fa fa-question-circle"></i> 如何获取appid?</a></div>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>appsecret(应用秘钥)</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[zhongwu][appsecret]" value="<?php echo (isset($item['value']['appsecret']) && ($item['value']['appsecret'] !== '')?$item['value']['appsecret']:''); ?>" class="form-control" data-rule="" data-tip=""/>
                                        <div style="margin-top:5px;"><a href="http://www.zhongwu.co/platform.html" target="_blank"><i class="fa fa-question-circle"></i> 如何获取appsecret?</a></div>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <?php elseif($item['name']=='yilianyun'): ?>
                <div class="tab-pane fade" id="yilianyun">
                    <table class="table table-striped table-config">
                        <tbody>
                        <tr>
                            <td width="25%">appid(应用id)</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[yilianyun][appid]" value="<?php echo (isset($item['value']['appid']) && ($item['value']['appid'] !== '')?$item['value']['appid']:''); ?>" class="form-control" data-rule="" data-tip=""/>
                                        <div style="margin-top:5px;"><a href="https://dev.yilianyun.net/doc/doc" target="_blank"><i class="fa fa-question-circle"></i> 如何获取appid?</a></div>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>appsecret(应用秘钥)</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[yilianyun][appsecret]" value="<?php echo (isset($item['value']['appsecret']) && ($item['value']['appsecret'] !== '')?$item['value']['appsecret']:''); ?>" class="form-control" data-rule="" data-tip=""/>
                                        <div style="margin-top:5px;"><a href="https://dev.yilianyun.net/doc/doc" target="_blank"><i class="fa fa-question-circle"></i> 如何获取appsecret?</a></div>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>access_token</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[yilianyun][access_token]" value="<?php echo (isset($item['value']['access_token']) && ($item['value']['access_token'] !== '')?$item['value']['access_token']:''); ?>" class="form-control" data-rule="" data-tip=""/>
                                        <div style="margin-top:5px;"><i class="fa fa-question-circle">access_token留空即可，打印机使用时将自动获取并保存</i></div>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <?php elseif($item['name']=='feie'): ?>
                <div class="tab-pane fade" id="feie">
                    <table class="table table-striped table-config">
                        <tbody>
                        <tr>
                            <td width="25%">USER(注册用户名)</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[feie][USER]" value="<?php echo (isset($item['value']['USER']) && ($item['value']['USER'] !== '')?$item['value']['USER']:''); ?>" class="form-control" data-rule="" data-tip=""/>
                                        <div style="margin-top:5px;"><a href="http://www.feieyun.com/open/index.html" target="_blank"><i class="fa fa-question-circle"></i> 如何获取USER?</a></div>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>UKEY(用户秘钥)</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[feie][UKEY]" value="<?php echo (isset($item['value']['UKEY']) && ($item['value']['UKEY'] !== '')?$item['value']['UKEY']:''); ?>" class="form-control" data-rule="" data-tip=""/>
                                        <div style="margin-top:5px;"><a href="http://www.feieyun.com/open/index.html" target="_blank"><i class="fa fa-question-circle"></i> 如何获取UKEY?</a></div>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>IP</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[feie][IP]" value="<?php echo (isset($item['value']['IP']) && ($item['value']['IP'] !== '')?$item['value']['IP']:''); ?>" class="form-control" data-rule="" data-tip=""/>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>PORT</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[feie][PORT]" value="<?php echo (isset($item['value']['PORT']) && ($item['value']['PORT'] !== '')?$item['value']['PORT']:''); ?>" class="form-control" data-rule="" data-tip=""/>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>PATH</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[feie][PATH]" value="<?php echo (isset($item['value']['PATH']) && ($item['value']['PATH'] !== '')?$item['value']['PATH']:''); ?>" class="form-control" data-rule="" data-tip=""/>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <?php endif; endforeach; ?>
                <div class="form-group layer-footer">
                    <label class="control-label col-xs-12 col-sm-2"></label>
                    <div class="col-xs-12 col-sm-8">
                        <button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
                        <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>


                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
    </body>
</html>
